//
//  Student.m
//  OCDay2
//
//  Created by dllo on 16/5/23.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Student.h"
#import "Subject.h"
@implementation Student
-(void)setNumber:(NSInteger)number{
    _number = number;
}
-(NSInteger)number{
    return _number;
}
//-(void)setScore:(CGFloat)score{
//    _score = score;
//}
//-(CGFloat)score{
//    return _score;
//}
-(void)setSub:(Subject *)sub{
    _sub = sub;
}
-(Subject *)sub{
    return _sub;
}


-(void)info {
    [super info];
    if(_sub){
    NSLog(@"number: %ld, score :%.2lf %.2lf %.2lf",_number,_sub->_english,_sub->_math,_sub->_chinese);
    } else {
        NSLog(@"你的sub呢?");
    }
}
@end
